package main

import (
	"fmt"
	"reflect"
)

func calSum(nums ...int) {
	fmt.Println(reflect.TypeOf(nums))
	var sum = 0
	for _, num := range nums {
		sum += num
	}
	fmt.Println(sum)
}

func main() {
	calSum(1, 5, 10, 15)
}
